async function parseBlog(url,theme){
  //根据 url 判定文章来源
  let source = '';
  if(url.match(/csdn/)){
    console.log('csdn网址')
    let res =  await wx.cloud.callFunction({
      name:'csdn',
      data:{
        url:url
      }
    })
    return res;
  }else if(url.match(/cnblog/)){
    console.log('博客园地址')
    let res =  await wx.cloud.callFunction({
      name:'cnblog',
      data:{
        url:url
      }
    })
    return res;
  }else{
    wx.showToast({
      title: '目前暂不支持该文章解析',
      icon:'none'
    })
  }
}
module.exports={
  parseBlog
}